/**
 * Project Name:account
 * File Name:PropertiesServiceBean.java
 * Package Name:com.eloancn.account.service
 * Date:2016-6-22下午6:38:46
 * Copyright (c) 2016, eloancn All Rights Reserved.
 *
 */
package org.springboot.jpetstore.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * 获取properties配置文件中的值
 * ClassName: PropertiesServiceBean <br/>
 * date: 2017-8-27 下午6:38:46 <br/>
 *
 */
@Service
public class PropertiesServiceBean {

	@Value("${spring.datasource.url}")
	private String datasourceUrl;

	@Value("${spring.datasource.username}")
	private String datasourceUsername;

	@Value("${spring.datasource.password}")
	private String datasourcePwd;

	public String getDatasourceUrl() {
		return datasourceUrl;
	}

	public void setDatasourceUrl(String datasourceUrl) {
		this.datasourceUrl = datasourceUrl;
	}

	public String getDatasourceUsername() {
		return datasourceUsername;
	}

	public void setDatasourceUsername(String datasourceUsername) {
		this.datasourceUsername = datasourceUsername;
	}

	public String getDatasourcePwd() {
		return datasourcePwd;
	}

	public void setDatasourcePwd(String datasourcePwd) {
		this.datasourcePwd = datasourcePwd;
	}
}


